Skip to main content

Interface: Buffer<T>

Buffer to hold the signal subject

Type parameters

Name
T

Methods

add

add(value): void

Add value to buffer

Parameters

NameType
valueT

Returns

void


entries

entries(): T[]

Returns

T[]

the current buffered values as an array


forEach

forEach(cb): void

Iterate over the buffered values

Parameters

NameType
cb(value: T, index: number) => void

Returns

void